home *** CD-ROM | disk | FTP | other *** search
/ Black Crawling Systems Archive Release 1.0 / Black Crawling Systems Archive Release 1.0 (L0pht Heavy Industries, Inc.)(1997).ISO / cdc / cdc042.txt < prev    next >
Text File  |  1994-12-27  |  4KB  |  104 lines

  1. _______________________________________________________________________________
  2.         _   _                                                      _   _
  3.        ((___))                                                    ((___))
  4.        [ x x ]                 cDc communications                 [ x x ]
  5.         \   /                      presents...                     \   /
  6.         (` ')                                                      (` ')
  7.          (U)                                                        (U)
  8.  
  9.                                APPLE SHAPE TABLES
  10.                              (a short introduction)
  11.  
  12.                               by  The Dark Static
  13.  
  14.                       >>> A CULT Publication......1988 <<<
  15.                         -cDc- CULT OF THE DEAD COW -cDc-
  16. _______________________________________________________________________________
  17.  
  18.  
  19. What shape tables are:
  20.  
  21.         Shape tables are a series of numbers in a binary location that define a
  22. certain shape.  They can either be POKEd into memory, or can be BSAVED.  You
  23. can program a shape table either from the monitor (call -151) or from BASIC. 
  24. The first few addresses of that area define the table itself.
  25.  
  26. Enough of that shit, let's get on to something real.
  27.  
  28. The first thing you have to do, is let your computer know where this shape
  29. table is stored. Here's how you do this:
  30.  
  31. POKE 232,X
  32.  
  33. POKE 233,Y
  34.  
  35. X and Y can be figured out with a little program.  If it is stored at 768
  36. A popular location then X=0 and Y=3.  Most programs (like Blazing Paddles
  37. and Take 1 have their shape tables stored at 24576($6000)).  And if it is
  38. stored at 24576, then X=0, Y=96
  39.  
  40. Here is the program to figure out X and Y
  41.  
  42. 10 SB=INT(AD/256)
  43. 20 FB=AD-SB*256
  44.  
  45. Before you run this, set AD equal to the memory address (remember 768 and
  46. 24576?)
  47.  
  48. Now do this:
  49.  
  50. PRINT SB
  51. PRINT FB
  52.  
  53. X is equal to FB and Y is equal to SB.
  54.  
  55.  
  56. o  Plotting shapes..
  57.  
  58. Now...Just do an HGR:HCOLOR=A command and you're ready.  To plot a shape, just
  59. XDRAW A at B,C.  A is the shape number, B is the horizontal position of where
  60. you want the shape to be, and C is the vertical position.  To erase this shape,
  61. just use the same command.  XDRAW it over the same B and C position.
  62.  
  63. Before you do all this, do a ROT=0.  This is the rotation of the shape.
  64. Setting ROT to 0 insures that you have the original shape.  Experiment with the
  65. rotation and change the number in ROT.
  66.  
  67. If you want to make the shape larger or smaller, do a SCALE=X.  In the shape's
  68. natural position, X is equal to 1.  If the shape appears somewhat fucked up,
  69. then set SCALE to 1.  Do not do any decimals...
  70. That should be it for that.
  71.  
  72. [Yet another thing I forgot to mention.  If you just want to do this in page 1
  73.  graphics (HGR) then read no further, skip to next section.
  74.  But, if you want to plot shapes on page 2 (HGR2) then POKE 230,64.  To change
  75.  it back, POKE 230,32]
  76.  
  77.  
  78. I am now going to end this beginners' introduction, but I wouldn't feel that I
  79. had helped anyone struggling to learn this fun thing if I didn't at least give
  80. an example shape to work with.  Type in this program and then go back to
  81. plotting shapes, and see what you can do...
  82.  
  83.  
  84. o Sample program..
  85.  
  86.  
  87. 10 HGR:HCOLOR=3:POKE -16302,0:rot=0
  88. 50 REM vvv poking in shape table setup vvv
  89. 60 POKE 768,1:POKE 769,0:POKE 770,4:POKE 771,0
  90. 70 REM vvv poking in shape[square]
  91. 80 POKE 772,44:poke 773,62
  92. 90 POKE 232,0
  93. 100 POKE 233,3
  94. 110 SCALE=30
  95. 120 XDRAW 1 AT X,90
  96. 130 XDRAW 1 AT X,90
  97. 140 X=X+1:GOTO 120
  98.  
  99. ===============================================================================
  100.  (c)1988 cDc communications  by The Dark Static                      2/29/88-42
  101.  All Rights Worth Shit
  102. 
  103.  
  104.